/**
 * 用户数据对象接口
 */
export interface IUserVo {
  id: string
  name: string
  balance: number
}

/**
 * 用户对象
 */
export class User implements IUserVo {
  public id: string
  public name: string
  public balance: number

  constructor(user: IUserVo) {
    this.id = user.id
    this.name = user.name
    this.balance = user.balance
  }
}